<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org"  xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<meta charset="utf-8">
<head th:include="include :: header"></head>
<body class="gray-bg">
	<div>
		<div class="col-sm-12">
			<div class="ibox">
				<div class="ibox-body">
					<div class="fixed-table-toolbar">
						<div class="columns pull-right" role="group">
							<button class="btn btn-success" onclick="reLoad()">
								<i class="fa fa-search" aria-hidden="true"></i>查询
							</button>
						</div>
						<div class="pull-left search nopadding" style="width: 14%">
							<input type="text" class="laydate-icon form-control" placeholder="订单开始时间"
											   id="start" name="start"
											   onclick="laydate({istime: true, format: 'YYYY-MM-DD hh:mm:ss'})"
											   style="background-color: #fff;" readonly="readonly" th:value="${start}" onblur="chooseReLoad()"/>
						</div>
						<div class="columns pull-left">
                            <label style="font-weight: 700;float: left;padding: 3px 10px;line-height: 2;font-size: 15px">
                                <i class="fa fa-exchange"></i>
                            </label>
                        </div>
						<div class="pull-left search nopadding" style="width: 14%">
							<input type="text" class="laydate-icon form-control" placeholder="订单结束时间"
											   id="end" name="end"
											   onclick="laydate({istime: true, format: 'YYYY-MM-DD hh:mm:ss'})"
											   style="background-color: #fff;" readonly="readonly" th:value="${end}" onblur="chooseReLoad()"/>
						</div>
                        <div class="search col-md-5 nopadding" data-toggle="distpicker" id="dist_target">
                            <div class="col-sm-4" style="padding-right: 0px">
                                <select class="form-control chosen-select" id="province" name="province" data-province="----选择省----" onchange="chooseReLoad()"></select>
                            </div>
                            <div class="col-sm-4" style="padding-left: 0px">
                                <select class="form-control chosen-select"  id="city" name="city"  data-city="----选择市----" onchange="chooseReLoad()"></select>
                            </div>
                            <div class="col-sm-4" style="padding-left: 0px">
                                <select class="form-control chosen-select"  id="area" name="area"  data-area="----选择区----" onchange="reLoad()"></select>
                            </div>
                        </div>
                        <div class="columns pull-left col-md-1 nopadding">
							<select data-placeholder="仓库" class="form-control chosen-select" id="storeroomId" tabindex="2" onchange="reLoad()">
								<option value="" selected="selected">选择仓库</option>
								<option th:each="item: ${listWarehouse}" th:text="${item.name}" th:value="${item.id}"></option>
							</select>
						</div>
						<div class="columns pull-left col-md-1 nopadding">
							<select data-placeholder="商品区分" class="form-control chosen-select" id="baseproductid" tabindex="2" onchange="reLoad()">
								<option  value>请选择</option>
								<option  value="0">平台商品</option>
								<option value="1">商户商品</option>
							</select>
						</div>
						 <input type="hidden" id="centreId" th:value="${centreId}" th:if="${flag} == '1'">
						<div class="columns pull-left col-md-1 nopadding" th:if="${flag} == '0'">
							<select data-placeholder="商户" class="form-control chosen-select" id="centreId" tabindex="2">
								<option value="" selected="selected">选择商户</option>
								<option th:each="item: ${centreList}" th:text="${item.name}" th:value="${item.centreId}"></option>
							</select>
						</div>
					</div>
					<table id="newNodirectListTable" data-mobile-responsive="true"></table>
					<div>
						<div class="row">
							<div class="col-sm-12">
								<div class="ibox float-e-margins">
									<div class="form-horizontal m-t">
											<div class="form-group">
												<label class="col-sm-1 control-label">清单名称:</label>
												<div class="col-sm-3">
													<input id="listName" name="listName" class="form-control" type="text" value="">
												</div>
												<div class="col-sm-3">
													<button class="btn btn-success" onclick="generateList()">
														<i class="fa fa-plus" aria-hidden="true"></i>生成清单
													</button>
												</div>
											</div>
											
											<div class="form-group">
												<label class="col-sm-1 control-label">清单备注:</label>
												<div class="col-sm-3">
													<textarea id="remark" name="remark" class="form-control" /></textarea>
												</div>
											</div>
									</div>
								</div>
							</div>
						</div>
					</div>
					
					
					
				</div>
			</div>
		</div>
		
	</div>
	<div th:include="include :: footer"></div>
	<script src="/js/plugins/distpicker/distpicker.data.min.js" ></script>
    <script src="/js/plugins/distpicker/distpicker.min.js" ></script>
	<script type="text/javascript" src="/js/appjs/logistics/nodirectList/newNodirectList.js"></script>
	<script type="text/javascript">
		function closeDow() {
			var index = parent.layer.getFrameIndex(window.name); // 获取窗口索引
			parent.layer.close(index);
		}
	</script>
</body>
</html>